IF NOT EXISTS (SELECT * FROM master.dbo.syslogins WHERE loginname = N'usr')
CREATE LOGIN [usr] WITH PASSWORD = 'p@ssw0rd'
GO
CREATE USER [usr] FOR LOGIN [usr]
GO
GRANT CONNECT TO [usr]
